-- GENERATED SPELL FOR [Dragonflayer Berserker] --


function spell0_24216(pUnit, Event) --@Throw Bottle,n/a--
pUnit:FullCastSpellOnTarget(43291,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24216', 900, 1)
end

function Sorts_24216(pUnit, Event)
local choix_sorts_24216 = math.random(0, 0)
if choix_sorts_24216 == 0 then
pUnit:RegisterEvent('spell0_24216', 1, 1)
end
end

function mob24216_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24216', math.random(1500, 3000), 1)
end

function mob24216_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24216_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24216_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24216, 1, 'mob24216_Action')
RegisterUnitEvent(24216, 2, 'mob24216_Leave')
RegisterUnitEvent(24216, 3, 'mob24216_Kill')
RegisterUnitEvent(24216, 4, 'mob24216_Die')
